<html>
<head>
<title>eLGU - {TITLE}</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="../css/elgu.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<script language="Javascript">

function editUser(id){
	document.UserList.action = 'UserEncode.php{Session}';
	UserList.formAction.value = 'edit';
	UserList.personID.value = id;
	UserList.submit();
}
function openWin(strLink, strWindow, intLeft, intTop, intWidth, intHeight){
	window.open(strLink, strWindow, "position:absolute; left="+intLeft+", top="+intTop+", width="+intWidth+", height="+intHeight+", status=0, toolbar=no, scrollbars=no, resizable=no");
}

function openUserEncode(userEncode){
	openWin(userEncode, 'UserEncode', 250,10,570,715);
}

</script>
</head>
<body BGCOLOR=#999999 link="#333333" vlink="#333333" alink="#333333" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"> 
      <table WIDTH=100 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
        <tr> 
          <td> <img SRC="../images/inner_01.jpg" WIDTH=18 HEIGHT=9 ></td>
          <td> <img SRC="../images/inner_02.jpg" WIDTH=27 HEIGHT=9 ></td>
          <td COLSPAN=2> <img SRC="../images/inner_03.jpg" WIDTH=598 HEIGHT=9 ></td>
          <td COLSPAN=3 ROWSPAN=2><img SRC="../images/steps/step00.jpg" WIDTH=157 HEIGHT=133 ></td>
        </tr>
        <tr> 
          <td> <img SRC="../images/inner_05.jpg" WIDTH=18 HEIGHT=124 ></td>
          <td> <img SRC="../images/inner_06.jpg" WIDTH=27 HEIGHT=124 ></td>
          <td COLSPAN=2 bgcolor="#CCCCCC"> <img SRC="../images/title/title_adminmodule.jpg" WIDTH=598 HEIGHT=124 ></td>
        </tr>
        <tr> 
          <td> <img SRC="../images/inner_08.jpg" WIDTH=18 HEIGHT=53 ></td>
          <td> <img SRC="../images/inner_09.jpg" WIDTH=27 HEIGHT=53 ></td>
          <td COLSPAN=3 align="left" valign="top" bgcolor="#CCCCCC"> 
            <table WIDTH=702 BORDER=0 CELLPADDING=0 CELLSPACING=0>
	   <tr> 
		<td width="72"> <img SRC="../images/nav/nav_a_01.jpg" WIDTH=72 HEIGHT=53 ></td>
		<td background="../images/nav_area_bg.jpg"><table width="100%%" border="0" cellspacing="0" cellpadding="0">
		  <tr align="center"> 
		   <td width="0" align=left class="common" colspan=4><b>{uname}</b> : {today}</td>
		   <td width="0" align=right colspan=7>
			<a href="home.php{Session}" class="navi" title="Admin Home">Admin Home</a>
		    <font class="navi">&lt;</font>
			<a href="../home.php{Session}" class="navi" title="Home">Home</a>
		    <font class="navi">|</font>
			<a href="../Logout.php" class="navi" title="Logout">Logout</a>
			<br>&nbsp;
		   </td>
		  </tr>
		  <tr align="center"> 
		   <td width="0"><a href="eRPTSSettingsEncode.php{Session}" class="navi" title="eRPTS Settings">eRPTS Settings</a></td>
		   <td width="0" class="navi">|</td>
		   <td width="0"><a href="UserList.php{Session}" class="navi" title="Users List">Users</a></td>
		   <td width="0" class="navi">|</td>
		   <td width="0"><a href="MasterAddressList.php{Session}" class="navi" title="Location"">Location</a></td>
		   <td width="0" class="navi">|</td>
		   <td width="0"><a href="MasterPropertyList.php{Session}" class="navi" title="Property">Property</a></td>
		   <td width="0" class="navi">|</td>
		   <td width="0"><a href="GeneralRevision.php{Session}" class="navi" title="General Revision">General Revision</a></td>
		   <td width="0" class="navi">|</td>
		   <td width="0"><a href="../../nccsms/home.php{Session}" class="navi" title="Alerts">Alerts</a></td>
		  </tr>
		 </table></td>
		<td width="75"> <img SRC="../images/nav/nav_a_08.jpg" WIDTH=75 HEIGHT=53 ></td>
	   </tr>
	  </table>
          </td>
          <td> <img SRC="../images/inner_11.jpg" WIDTH=36 HEIGHT=53 ></td>
          <td> <img SRC="../images/inner_12.jpg" WIDTH=17 HEIGHT=53 ></td>
        </tr>
        <tr> 
          <td align="center" valign="top"> <img SRC="../images/inner_13.jpg" WIDTH=18 HEIGHT=375 ></td>
          <td background="../images/inner_14.jpg"> <img SRC="../images/spacer.gif" WIDTH=27 HEIGHT=1 ></td>
          <td COLSPAN=3 align="left" valign="top" background="../images/background/bg_middle.jpg" bgcolor="#CCCCCC"> 
            <table width="702" height="375" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td align="left" valign="top"> 
                  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td align="center" valign="top" class="subtitle"> 
                        <table width="90%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
							  <td class="subtitle" align="center">&nbsp;</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td align="center" valign="top" class="title"><img src="../images/spacer.gif" width="10" height="15"></td>
                    </tr>
                    <tr> 
                      
		   <td align="left" valign="top">
		   
		    <table border=0 cellpadding=0 cellspacing=0 width="100%">
			<tr>
				<td valign=top align=left>
					<font class="subtitle">Users</font><br>
					- <a href="javascript:openUserEncode('UserEncode.php{Session}');" class="common">encode 
					User</a><br>
					<font color="#FF0000"><b class="common">{msg}</b></font> <br>
				</td>
				<td align=right class="common">
				 <form name="print">
				  <input type="button" value="Print" onClick="window.open('UserListPrint.php{Session}&sortBy={sortBy}&sortOrder={sortOrder}', 'printUserList', 'position:absolute; left=50, top=15, width=790, height=590, status=1, menubar=1, toolbar=1, scrollbars=1, resizable=1');">
				  <br>
				  <font size=1>* prints ONLY enabled records</font>
				 </form>
				</td>
			</tr>

			<tr>
				<td>&nbsp;</td>
				<td class="fields" align=right>

				 <!-- BEGIN ShowDisabledOn -->
				 <b>Showing Disabled Users</b>
				 |
				 <a href="UserList.php{Session}&sortBy={sortBy}&sortOrder={sortOrder}&hideDisabled=true">Hide Disabled Users</a>
				 <!-- END ShowDisabledOn -->

				 <!-- BEGIN HideDisabledOn -->
				 <a href="UserList.php{Session}&sortBy={sortBy}&sortOrder={sortOrder}&hideDisabled=false">Show Disabled Users</a>
				 |
				 <b>Hiding Disabled Users</b>
				 <!-- END HideDisabledOn -->

				</td>
			</tr>
			</table>

			<!-- BEGIN Table -->
			<form name="UserList" method="post" action="UserList.php{Session}">
			 <input type="hidden" name="formAction" value="delete">
			 <input type="hidden" name="sortBy" value="{sortBy}">
			 <input type="hidden" name="sortOrder" value="{sortOrder}">
			 <input type="hidden" name="hideDisabled" value="{hideDisabled}">

			 <table width="90%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
   <td align="center" bgcolor="#dddddd"><table border="0" cellspacing="1" cellpadding="4" width="100%">
				 <tr bgcolor="#dddddd"> 
				  <td class="fields" align=center width=40 nowrap>
					<!-- BEGIN AscendingUserID -->
					 <img src="images/asc_order.png" border=0 alt="Ascending">
					<!-- END AscendingUserID -->
					<!-- BEGIN DescendingUserID -->
					 <img src="images/desc_order.png" border=0 alt="Descending">
					<!-- END DescendingUserID -->
					<a href="UserList.php{Session}&sortBy=userID&sortOrder={userIDSortOrder}&hideDisabled={hideDisabled}"><b>ID</b></a>
				  </td>
				  <td class="fields" width=100 align=center>
					<!-- BEGIN AscendingUsername -->
					 <img src="images/asc_order.png" border=0 alt="Ascending">
					<!-- END AscendingUsername -->
					<!-- BEGIN DescendingUsername -->
					 <img src="images/desc_order.png" border=0 alt="Descending">
					<!-- END DescendingUsername -->
				    <a href="UserList.php{Session}&sortBy=username&sortOrder={usernameSortOrder}&hideDisabled={hideDisabled}"><b>username</b></a>
				  </td>
				  <td class="fields">
					<!-- BEGIN AscendingFullName -->
					 <img src="images/asc_order.png" border=0 alt="Ascending">
					<!-- END AscendingFullName -->
					<!-- BEGIN DescendingFullName -->
					 <img src="images/desc_order.png" border=0 alt="Descending">
					<!-- END DescendingFullName -->
				    <a href="UserList.php{Session}&sortBy=fullName&sortOrder={fullNameSortOrder}&hideDisabled={hideDisabled"><b>full name</b></a>
				  </td>
				  <td class="fields" align=center>
					<!-- BEGIN AscendingUserType -->
					 <img src="images/asc_order.png" border=0 alt="Ascending">
					<!-- END AscendingUserType -->
					<!-- BEGIN DescendingUserType -->
					 <img src="images/desc_order.png" border=0 alt="Descending">
					<!-- END DescendingUserType -->
				    <a href="UserList.php{Session}&sortBy=userType&sortOrder={userTypeSortOrder}&hideDisabled={hideDisabled"><b>userType</b></a>
				  </td>
				  <!--td class="common"><b>personID</b></td-->
				  <!--<td class="fields"><b>dateCreated</b></td> -->
				  <td class="fields" align=center>
					<!-- BEGIN AscendingStatus -->
					 <img src="images/asc_order.png" border=0 alt="Ascending">
					<!-- END AscendingStatus -->
					<!-- BEGIN DescendingStatus -->
					 <img src="images/desc_order.png" border=0 alt="Descending">
					<!-- END DescendingStatus -->
				    <a href="UserList.php{Session}&sortBy=status&sortOrder={statusSortOrder}&hideDisabled={hideDisabled"><b>status</b></a>
				  </td>
				  <td class="fields"><input type="button" name="btnUpdateStatus" style="font-size:10px;" onClick="document.UserList.formAction.value='enable'; document.UserList.submit();">
				  <script language="Javascript">
					document.UserList.btnUpdateStatus.value="  Update\nStatus";
				  </script>
				  </td>
				  <!--td class="common"><b>dateModified</b></td-->
				  <td class="fields" align="center"> Edit </td>

				  <!--

				  <td class="common" align="center"> 
				   <input type="submit" name="Submit" value="Delete"> 
				  </td>

				  -->

				 </tr>
				 <!-- BEGIN UserList -->
				 <tr bgcolor="#f6f6f6"> 
				  <td class="fileds_comment" align=center><b>{userID}</b></td>
				  <td class="fields" align=left valign=top><a href="javascript:openUserEncode('UserEncode.php{Session}&userID={userID}&personID={personID}&formAction=edit');" class="fields">{username}</a></td>
				  <td class="fields" nowrap valign=top align=left>{fullName}</td>
				  <td class="fileds_comment" valign=top align=left nowrap>{userTypeDescriptions}</td>
				  <!--td class="common" align=right>{personID}</td-->
				  <!--
				  <td class="fileds_comment" align=center>{dateCreated}</td>
				  !-->
				  <td class="fields" align=center valign=top>{status}</td>
				  <td class="common" align=center> <input type="checkbox" name="status[]" value="{userID}" {statusCheck}></td>
				  <!--td class="common">{dateModified}</td-->
				  <td class="common" align="center"> 
				   <!--b><a href="javascript:openUserEncode('UserEncode.php{Session}&userID={userID}&personID={personID}&formAction=edit')">Edit>></a></b-->
				   &nbsp; <input type="button" name="editButton" value="Edit" onClick="openUserEncode('UserEncode.php{Session}&userID={userID}&personID={personID}&formAction=edit');" style="font-size:10px;"> 
				  </td>
				  <!--
				  <td class="common" align="center"> <input type="checkbox" name="userID[]" value="{userID}"> 
				  </td>
				  -->
				 </tr>
				 <!-- END UserList -->
				</table></td>
  </tr>
 </table>
</form>
<!-- END Table -->
</td>
                    </tr>
                    <tr> 
                      <td align="center" valign="top"><img src="../images/spacer.gif" width="10" height="15"><a name="#down"></a></td>
                    </tr>
                    <tr> 
                      <td align="center" valign="top" class="fileds_comment">Tampering 
                        with this system is criminally punishable under Philippine 
                        Laws.<br>
                        &copy; Republic of the Philippines National Computer Center. 
                        All Rights Reserved. </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
          <td background="../images/inner_16.jpg"> <img SRC="../images/spacer.gif " WIDTH=36 HEIGHT=375 ></td>
          <td> <img SRC="../images/inner_17.jpg" WIDTH=17 HEIGHT=375 ></td>
        </tr>
        <tr> 
          <td> <img SRC="../images/inner_18.jpg" WIDTH=18 HEIGHT=39></td>
          <td> <img SRC="../images/inner_19.jpg" WIDTH=27 HEIGHT=39></td>
          <td> <img SRC="../images/inner_20.jpg" WIDTH=355 HEIGHT=39></td>
          <td> <img SRC="../images/inner_21.jpg" WIDTH=243 HEIGHT=39></td>
          <td> <img SRC="../images/inner_22.jpg" WIDTH=104 HEIGHT=39></td>
          <td> <img SRC="../images/inner_23.jpg" WIDTH=36 HEIGHT=39></td>
          <td> <img SRC="../images/inner_24.jpg" WIDTH=17 HEIGHT=39></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>